package com.baizhi.mall.service.impl;

import com.baizhi.mall.entity.mysql.BzRoleDO;
import com.baizhi.mall.mapper.BzRoleMapper;
import com.baizhi.mall.service.IBzRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhw
 * @since 2021-05-17
 */
@Service
public class BzRoleServiceImpl extends ServiceImpl<BzRoleMapper, BzRoleDO> implements IBzRoleService {
    @Autowired
    private BzRoleMapper rm;
    @Override
    @Transactional(readOnly = true)
    public List<BzRoleDO> selectAll() {
        List<BzRoleDO> list=rm.selectList(null);
        return list;
    }
}
